package com.uchedao.seller.module;

import com.google.gson.Gson;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;

/**
 * 过户情况
 * 
 * @author "郑锡真"
 * 
 * */
public class TransferInfo implements Cloneable {

	@Expose
	@SerializedName("transfer_num")
	public String transfer_num;// 过户次数

	@Expose
	@SerializedName("transfer_mortgage")
	public String transfer_mortgage;// 是否抵押

	@Expose
	@SerializedName("transfer_appearance")
	public String transfer_appearance;// 是否变更外观

	@Expose
	@SerializedName("transfer_frame_number")
	public String transfer_frame_number;// 是否变更车架号

	@Expose
	@SerializedName("transfer_engine")
	public String transfer_engine;// 是否变更发动机号

	@Expose
	@SerializedName("transfer_other")
	public String transfer_other;// 是否变更其他改装件


	@Override
	public TransferInfo clone() throws CloneNotSupportedException {
		return (TransferInfo) super.clone();
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj) {
			return true;
		}
		if (obj == null || getClass() != obj.getClass()) {
			return false;
		}
		TransferInfo transferInfo = getClass().cast(obj);
		return transferInfo.toString().equals(toString());
	}

	public String toString() {
		return new Gson().toJson(this);
	}

}
